import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:ayj_flutter_chat_app/common/configs/project_config.dart';


class VoiceHeaderWidget extends StatelessWidget {
  final String url;
  final String name;
  final double size;

  const VoiceHeaderWidget({
    super.key,
    required this.url,
    required this.name,
    required this.size,
  });

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        AppImage.rRectNetwork(
          url,
          size,
        ),
        SizedBox(height: 8.h,),
        Text(name,style: KStyles.commonFontWeightTextStyle(Colors.white, KDimens.font_sp15),),
      ],
    ).addCenter();
  }
}